.class Lcom/netease/newsreader/activity/DetailPage$31;
.super Ljava/lang/Thread;
.source "DetailPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/DetailPage;->getDocIDListThread(Ljava/lang/String;ZII)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPage;

.field private final synthetic val$id:Ljava/lang/String;

.field private final synthetic val$num:I

.field private final synthetic val$page:Z

.field private final synthetic val$pageType:I

.field private final synthetic val$startNum:I


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPage;ILjava/lang/String;ZII)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iput p2, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$num:I

    iput-object p3, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    iput-boolean p4, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$page:Z

    iput p5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$startNum:I

    iput p6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$pageType:I

    .line 1768
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 11

    .prologue
    const/4 v10, 0x1

    const/16 v9, 0x14

    .line 1771
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 1772
    .local v1, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 1774
    .local v4, topicList:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget v3, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$num:I

    .line 1775
    .local v3, n:I
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$16(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_4

    const-string v5, "attitude"

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 1777
    const-string v5, "http://c.3g.163.com/nc/article/attitude/"

    iget v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$num:I

    .line 1778
    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1776
    invoke-static {v5, v6, v9, v7}, Lcom/netease/newsreader/rss/GetContent;->getAttitudeList(Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v4

    .line 1779
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1780
    const-string v6, "docid"

    .line 1781
    const-string v7, "news_list"

    const-string v8, "news_doc_id"

    .line 1779
    invoke-static {v5, v4, v6, v7, v8}, Lcom/netease/newsreader/activity/DetailPage;->access$135(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1782
    :cond_0
    if-eqz v4, :cond_3

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v5

    if-eqz v5, :cond_3

    .line 1830
    :cond_1
    :goto_0
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$136(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v5

    if-le v3, v5, :cond_b

    .line 1831
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$17(Lcom/netease/newsreader/activity/DetailPage;)Landroid/os/Handler;

    move-result-object v5

    const/16 v6, 0x9

    invoke-virtual {v5, v6}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 1868
    :cond_2
    :goto_1
    return-void

    .line 1783
    :cond_3
    add-int/lit8 v3, v3, 0x14

    .line 1786
    const-string v5, "http://c.3g.163.com/nc/article/attitude/"

    .line 1787
    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1785
    invoke-static {v5, v3, v9, v6}, Lcom/netease/newsreader/rss/GetContent;->getAttitudeList(Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v4

    .line 1788
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1789
    const-string v6, "docid"

    .line 1790
    const-string v7, "news_list"

    const-string v8, "news_doc_id"

    .line 1788
    invoke-static {v5, v4, v6, v7, v8}, Lcom/netease/newsreader/activity/DetailPage;->access$135(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1791
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$136(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v5

    if-le v3, v5, :cond_0

    goto :goto_0

    .line 1796
    :cond_4
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$137(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_7

    .line 1798
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1799
    const-string v6, "http://c.3g.163.com/nc/article/headline/"

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    iget v8, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$num:I

    .line 1797
    invoke-static {v5, v6, v7, v8, v9}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v1

    .line 1806
    :goto_2
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    const-string v6, "docid"

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    .line 1807
    const-string v8, "news_list"

    .line 1806
    invoke-static {v5, v1, v6, v7, v8}, Lcom/netease/newsreader/activity/DetailPage;->access$139(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1809
    :cond_5
    if-eqz v1, :cond_6

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v5

    if-nez v5, :cond_1

    .line 1810
    :cond_6
    add-int/lit8 v3, v3, 0x14

    .line 1811
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$137(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_9

    .line 1813
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1814
    const-string v6, "http://c.3g.163.com/nc/article/headline/"

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    .line 1812
    invoke-static {v5, v6, v7, v3, v9}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v1

    .line 1821
    :goto_3
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    const-string v6, "docid"

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    .line 1822
    const-string v8, "news_list"

    .line 1821
    invoke-static {v5, v1, v6, v7, v8}, Lcom/netease/newsreader/activity/DetailPage;->access$139(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1824
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$136(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v5

    if-le v3, v5, :cond_5

    goto :goto_0

    .line 1803
    :cond_7
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$138(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_8

    const-string v5, "http://c.3g.163.com/nc/article/local/"

    :goto_4
    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    .line 1804
    iget v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$num:I

    iget-object v8, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1802
    invoke-static {v5, v6, v7, v9, v8}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    goto :goto_2

    .line 1803
    :cond_8
    const-string v5, "http://c.3g.163.com/nc/article/list/"

    goto :goto_4

    .line 1818
    :cond_9
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$138(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_a

    const-string v5, "http://c.3g.163.com/nc/article/local/"

    .line 1819
    :goto_5
    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    iget-object v7, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 1817
    invoke-static {v5, v6, v3, v9, v7}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v1

    goto :goto_3

    .line 1818
    :cond_a
    const-string v5, "http://c.3g.163.com/nc/article/list/"

    goto :goto_5

    .line 1833
    :cond_b
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/ArrayList;->clear()V

    .line 1834
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$16(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_e

    const-string v5, "attitude"

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_e

    .line 1835
    const/4 v0, 0x0

    .local v0, i:I
    :goto_6
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v5

    if-lt v0, v5, :cond_c

    .line 1840
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    const-string v7, "more"

    invoke-static {v5, v4, v6, v7}, Lcom/netease/newsreader/activity/DetailPage;->access$140(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 1854
    :goto_7
    iget-boolean v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$page:Z

    if-eqz v5, :cond_2

    .line 1855
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 1856
    .local v2, msg:Landroid/os/Message;
    iget v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$startNum:I

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 1857
    iget v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$pageType:I

    if-ne v5, v10, :cond_12

    .line 1858
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    iput v5, v2, Landroid/os/Message;->arg2:I

    .line 1859
    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iput-object v5, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1864
    :goto_8
    const/4 v5, 0x4

    iput v5, v2, Landroid/os/Message;->what:I

    .line 1865
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$17(Lcom/netease/newsreader/activity/DetailPage;)Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_1

    .line 1836
    .end local v2           #msg:Landroid/os/Message;
    :cond_c
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-interface {v4, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 1837
    const-string v7, "docid"

    .line 1836
    invoke-interface {v5, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    if-nez v5, :cond_d

    .line 1837
    const-string v5, ""

    .line 1836
    :goto_9
    invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1835
    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    .line 1838
    :cond_d
    invoke-interface {v4, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    const-string v7, "docid"

    invoke-interface {v5, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    goto :goto_9

    .line 1842
    .end local v0           #i:I
    :cond_e
    const/4 v0, 0x0

    .restart local v0       #i:I
    :goto_a
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v5

    if-lt v0, v5, :cond_f

    .line 1847
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$137(Lcom/netease/newsreader/activity/DetailPage;)Z

    move-result v5

    if-eqz v5, :cond_11

    .line 1848
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    const-string v7, "head"

    invoke-static {v5, v1, v6, v7}, Lcom/netease/newsreader/activity/DetailPage;->access$141(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_7

    .line 1843
    :cond_f
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/HashMap;

    .line 1844
    const-string v7, "docid"

    .line 1843
    invoke-virtual {v5, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    if-nez v5, :cond_10

    .line 1844
    const-string v5, ""

    .line 1843
    :goto_b
    invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1842
    add-int/lit8 v0, v0, 0x1

    goto :goto_a

    .line 1845
    :cond_10
    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/HashMap;

    const-string v7, "docid"

    invoke-virtual {v5, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    goto :goto_b

    .line 1850
    :cond_11
    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$31;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$31;->val$id:Ljava/lang/String;

    const-string v7, "nonhead"

    invoke-static {v5, v1, v6, v7}, Lcom/netease/newsreader/activity/DetailPage;->access$141(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_7

    .line 1861
    .restart local v2       #msg:Landroid/os/Message;
    :cond_12
    const/4 v5, 0x0

    iput v5, v2, Landroid/os/Message;->arg2:I

    .line 1862
    const/4 v5, 0x2

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iput-object v5, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    goto/16 :goto_8
.end method
